<script src="/statics/js/jquery.form.js"></script>

<script>
$(function(){
	$("#myform").submit(function(){
		ajax($("#myform"),weibo_uploads);
		return false;
	})
})
function weibo_uploads(data)
{
	if ($("#weibo_body").val()=='')
	{
		$("#weibo_body").val('分享图片');
	}
	
	$(".pic_balck").html('<img src="'+data+'"/><br><a href="'+data+'" onclick="return del_pic(this)">删除图片</a>');
	$(".pic_balck").css('display','block');
	$("#pic_input").val(data);
	$("#weibo_body").focus();
	
	$("#floatBox_ajax").remove()
	$("#floatCorner_bottom").remove()
	$("#floatCorner_top").remove()
	
}
</script>

<div class="top10"></div>
<form action="/weibo/upload_info/" method="post" id="myform" enctype="multipart/form-data" >
<fieldset>
	<legend>上传图片</legend>
	<table width="100%"  class="table_form">
		<tr>
			<th>上传图片：</th>
			<td class="y-bg">
				<input type="file" name="file1" id="file1"/>
			</td>
		</tr>
	</table>
</fieldset>
<div class="top10"></div>
<input type="submit" class="button" id="dosubmit" name="dosubmit" value="上传图片" />
</form>